package com.uniview.enums;

public enum EFromWhere {
	PC(1),
	移动(2);
	
	private int val = 1;
	
	private EFromWhere(int val) {
		this.val = val;
	}
	
	public int toVal () {
		return val;
	}
	
	public static EFromWhere getFromWhere (int val) {
		if (val == PC.toVal()){
			return PC;
		} else if (val == 移动.toVal()) {
			return 移动;
		}
		return null;
	}
}
